package observerPattern.modify;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author： pang-yun
 * @date： 2021-10-25 17:22
 * 功能目的 ：用于
 */

@Data
@NoArgsConstructor
public class CurrentConditions implements Observer{
    private float temperature;
    private float pressure;
    private float humidity;

    public void update(float temperature, float pressure , float humidity){
        this.temperature=temperature;
        this.pressure = pressure;
        this.humidity = humidity;
        System.out.println(this.toString());
    }
}
